{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<body>
<div class="sub-body">
<div class="tab_info" style="width:700px">
<div class="tab-title-1"><span>报价公式</span></div>
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
        <tr>
            <th width="80%">公式</th>
            <th>操作</th>
	</tr>
        <!--{foreach from=$calcs item=calc}-->
	<tr id="calc_{$calc.id}">
            <td><a href="{url app=calc&act=show&id=$calc.id}">{$calc.name}</a></td>
            <td><a href="{url app=calc&act=add&id=$calc.id}">编辑</a> <a href="{url app=calc&act=del&id=$calc.id}">删除</a></td>
	</tr>
        <!--{/foreach}-->
        <tr>
            <td colspan="2" align="center"><input type="submit" value="增加公式" onClick="location.href='{url app=calc&act=add}'" class="btn-2"/></td>
	</tr>
</table>
 
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>